package com.fmdj.customer.feign;

import com.fmdj.common.util.CommonResult;
import com.fmdj.customer.controller.form.RideChargeCalculatorForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "fmdj-fee-calculator")
public interface FeeCalculatorServiceApi {

    @PostMapping("/fee/calculator/rideChargeCalculator")
    public CommonResult rideChargeCalculator(@RequestBody @Valid RideChargeCalculatorForm form);
}
